//
//  LocalResourceHandler.h
//  ASFDemo
//
//  Created by Marcus on 2/22/13.
//  Copyright (c) 2013 Marcus. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Chaos.h"


@protocol LocalResourceHandlerDelegate <NSObject>

- (void)fetchResourceDone;
- (void)fetchResourceError;
- (void)startFetchWebResource;
- (void)updateFetchWebResourceProgress:(float)progress;
@end

@interface LocalResourceHandler : NSObject <ChaosConnectionDelegate> {
    int expectedLength;
    int currentReceivedLength;
    NSMutableArray *resourceDownloadQueue;
}

@property (nonatomic, assign) id<LocalResourceHandlerDelegate> delegate;


- (void)verifyLocalResource;
- (NSData *)fetchLocalZip;
- (void)downloadARResource;
- (void)downloadNextResource;
@end
